#ifndef _PLUGIN_NIT_H
#define _PLUGIN_NIT_H

#ifdef __cplusplus
extern "C"{
#endif


typedef struct
{
	unsigned int						m_u32FilterID;
	builder_section_t*					m_pstNitSection;
	unsigned int						m_u32SectionRecvCnt;
	unsigned char						m_au8SecRecvBitmap[256];
	unsigned int						m_u32TimeOut;
	unsigned int 						m_u32Process;
}builder_nit_control_t;

extern int PluginNitStart(builder_nit_control_t* pstNitRecvCntrl);
extern int PluginNitTick(builder_nit_control_t* pstNitRecvCntrl);
extern int PluginNitRecv(builder_nit_control_t* pstNitRecvCntrl, unsigned int hFilter, unsigned char* pu8Section);
extern int PluginNitGetProcess(builder_nit_control_t* pstNitRecvCntrl, unsigned int* pu32Process);
extern int PluginNitStop(builder_nit_control_t* pstNitRecvCntrl);
extern int PluginNitReset(builder_nit_control_t* pstNitRecvCntrl);
extern int PluginNitGetSections(builder_nit_control_t* pstNitRecvCntrl, builder_section_t** ppstNit);
extern int PluginNitGetTunerList(builder_nit_control_t* pstNitRecvCntrl, builder_tuner_t** ppstTunerList, unsigned int* pu32Cnt);

#ifdef __cplusplus
}
#endif

#endif //_PLUGIN_NIT_H
